//
//  LKOrderChangedRecordCell.m
//  YLHelper
//
//  Created by she1323 on 2018/7/6.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKOrderChangedRecordCell.h"

@interface LKOrderChangedRecordCell()
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *applyNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *changeContentLabel;

@property (weak, nonatomic) IBOutlet UILabel *beforeLabel;

@property (weak, nonatomic) IBOutlet UILabel *afterLabel;

@end

@implementation LKOrderChangedRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setMode:(LKApprovaModel *)mode{
    _mode = mode;
    NSString *dateStr = [[_mode.applyTime componentsSeparatedByString:@"T"] firstObject];
    NSString *dateStr1 = [[_mode.applyTime componentsSeparatedByString:@"T"] lastObject];
    NSArray *arra = [dateStr1 componentsSeparatedByString:@":"];
    NSString *dateStr3 = [NSString stringWithFormat:@"%@:%@",arra[0],arra[1]];
    NSString *dateStr4 = [NSString stringWithFormat:@"%@ %@",dateStr,dateStr3];
    self.timeLabel.text = dateStr4;
    self.applyNameLabel.text = _mode.changeTime;
    self.changeContentLabel.text = _mode.changeItem;
    self.beforeLabel.text = _mode.beforeContext;
    self.afterLabel.text = _mode.afterContext;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
